package com.jfm.jfmc.core.icc.entity;

import lombok.Data;

/**
 * @author DYang
 * @since 2024-10-25 22:00
 *
 * 采集频率降级实体类
 */
@Data
public class FrequencyEntity {

    /**
     * 指标采集器ID
     */
    private String metricId;
    /**
     * 是否启用
     */
    private boolean enabled = true;
    /**
     * 采集频率
     */
    private int frequency;

    public FrequencyEntity(String metricId, int frequency) {
        this.metricId = metricId;
        this.frequency = frequency;
    }

    public FrequencyEntity(String metricId, int frequency, boolean enabled) {
        this.metricId = metricId;
        this.enabled = enabled;
        this.frequency = frequency;
    }
}
